package cn.ibobo.lease.admin.service.impl;

import cn.ibobo.lease.common.base.BaseMapper;
import cn.ibobo.lease.common.base.BaseServiceImpl;
import cn.ibobo.lease.admin.dao.UserOrderDetailMapper;
import cn.ibobo.lease.admin.service.UserOrderDetailService;
import cn.ibobo.lease.common.dto.UserOrderDetailDTO;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * 用户订单表业务处理接口
 * @Author lililiang
 * @Date 2018-12-22 14:49:45
 */
@Service
public class UserOrderDetailServiceImpl extends BaseServiceImpl<UserOrderDetailDTO, String> implements UserOrderDetailService {

    private static final Log LOGGER = LogFactory.getLog(UserOrderDetailServiceImpl.class);

    @Autowired
    private UserOrderDetailMapper mapper;

    @Override
    protected BaseMapper<UserOrderDetailDTO, String> getMapper() {
        return mapper;
    }

    /**
     * 用户订单表
列表
     * @Author lililiang
     * @Date 2018-12-22 14:49:45
     * @Param
     * @Return
     */
    @Override
    public List<UserOrderDetailDTO> list4Page(UserOrderDetailDTO entity, Integer pageNum, Integer... pageSize) {
        return super.list4Page(entity, pageNum, pageSize);
    }

    /**
     * 用户订单表
列表（无分页）
     * @Author lililiang
     * @Date 2018-12-22 14:49:45
     * @Param
     * @Return
     */
    @Override
    public List<UserOrderDetailDTO> listByCondition(UserOrderDetailDTO entity) {
        return super.listByCondition(entity);
    }

    /**
     * 查询用户订单表
详情信息
     * @Author lililiang
     * @Date 2018-12-22 14:49:45
     * @Param
     * @Return
     */
    @Override
    public UserOrderDetailDTO queryOneByPk(String id) {
        return super.queryOneByPk(id);
    }

    /**
     * 保存用户订单表
信息
     * @Author lililiang
     * @Date 2018-12-22 14:49:45
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer save(UserOrderDetailDTO entity) {
        return super.save(entity);
    }

    /**
     * 删除用户订单表
信息
     * @Author lililiang
     * @Date 2018-12-22 14:49:45
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer delete(String id) {
        return super.delete(id);
    }
}
